﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using VehicleMaintenance.Comm;

namespace VehicleMaintenance.Models
{

	public class User
	{
		[Key]
		public int UserID { get; set; }

		[Display(Name = "用户编码")]
		[Required(ErrorMessage = "用户名不能为空")]
		public string UserCode { get; set; }

		[Display(Name = "用户中文名")]
		public string UserName { get; set; }

		[Display(Name = "用户口令")]
		[Required(ErrorMessage = "用户口令不能为空")]
		public string PassWord { get; set; }

		[Display(Name = "是否启用")]
		[ControlTypeAttribute(Type = "ComboBox", Values = new string[] { "是", "否" })]
		public string IsEnable { get; set; }

		[Display(Name = "备注")]
		public string Description { get; set; }

		//public DateTime CreateTime { get; set; }

		//public ICollection<Post> Posts { get; set; }
	}
}
